namespace KPIS.GERP.WCF.ePayment.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class InitialCreate : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.Supplier",
                c => new
                    {
                        supplier_id = c.Int(nullable: false, identity: true),
                        supplier_tax_code = c.String(nullable: false, maxLength: 20),
                        supplier_branch_code = c.String(nullable: false, maxLength: 10),
                        supplier_name = c.String(nullable: false, maxLength: 140),
                        business_type = c.Int(nullable: false),
                        bank_account_code = c.String(maxLength: 20),
                        address = c.String(),
                        tel = c.String(maxLength: 30),
                        fax = c.String(maxLength: 30),
                        created_when = c.DateTime(nullable: false),
                        updated_when = c.DateTime(nullable: false),
                        deleted = c.Boolean(nullable: false),
                        deleted_when = c.DateTime(),
                    })
                .PrimaryKey(t => t.supplier_id);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.Supplier");
        }
    }
}
